package com.econ.powercloud.ems.service.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.econ.powercloud.ems.dal.entity.EmsUserOperateToken;
import com.econ.powercloud.ems.dal.mapper.EmsUserOperateTokenMapper;
import org.springframework.stereotype.Repository;

@Repository
public class EmsUserOperateTokenDAO extends ServiceImpl<EmsUserOperateTokenMapper, EmsUserOperateToken> {

    public EmsUserOperateToken selectUserOperateByUserId(String userId) {
        return this.baseMapper.selectUserOperateByUserId(userId);
    }

    public void updateLastLoginByUserId(String userName) {
        this.baseMapper.updateLastLoginByUserId(userName);
    }

    public void updatePassWordByUserId(String password,String userName) {
        this.baseMapper.updatePassWordByUserId(password,userName);
    }
}
